Register the Type Library

Click Register in the Type Library Editor. Delphi creates your type library and registers it on your system. A message should appear indicating that the ActiveX automation server was successfully registered. Click OK in the message box.

Note:    If the type library is not registered successfully on your system, create the type library and object methods over again. If you continue to have problems, refer to your Delphi documentation on creating type libraries.

Create the User-Defined Functions

  1. Minimize the Type Library Editor, and locate the declaration of the method you created in the your type library in the Unit1.pas unit.
  2. Enter code for the function as desired. For example:
function TConversion.Square(Number: Double): Double;
begin
result := Number * Number;
end;

Continue coding all methods that you declared for the interface.



Seagate Software IMG Holdings, Inc.
http://www.seagatesoftware.com
Support services:
http://support.seagatesoftware.com